#ifndef __LUA_LOG_H__
#define __LUA_LOG_H__

#include "OgreLog.h"

#define LogLuaError lua_ogre::LogError()

namespace lua_ogre {

class LuaLogStream
{
protected:
	Ogre::Log::Stream m_stream;
	bool m_empty;

public:
	LuaLogStream();
	~LuaLogStream();

	template <typename T>
	LuaLogStream& operator<< (const T& v)
	{
		m_stream << v;
		m_empty = false;
		return *this;
	}
};

LuaLogStream LogError();
}

#endif